package top.appx.helper.email;

import javax.mail.Address;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import java.util.List;

/**
 * Created by zwyhome on 2015/6/16.
 */
public class EmailModel {
    private String title;
    private String content;
    private Address[] addresss;

    public EmailModel(){}
    public EmailModel(String title,String content,String addressStr) throws AddressException {
        this.title = title;
        this.content = content;
        this.addresss = new Address[]{new InternetAddress(addressStr)};
    }


    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Address[] getAddresss() {
        return addresss;
    }

    public void setAddresss(Address[] addresss) {
        this.addresss = addresss;
    }
}
